﻿@model LeadVinaglue.Models.ViewPages.ProductPreviewModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Preview</title>
    <link href="/Content/gridview.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div>
        <h4>Xem tài liệu</h4>
        <input type="hidden" id="productId" value="@Model.ID" />
        <table width="730px" cellpadding="3" cellspacing="0" class="tablegrid">
            <tr>
                <td width="100">Tiêu đề</td>
                <td>@Model.Title</td>
            </tr>
            <tr>
                <td>Danh mục</td>
                <td>@Model.CategoryName &raquo; @Model.SubCategoryName</td>
            </tr>
            <tr>
                <td>Khu vực</td>
                <td>@Model.StateName &raquo; @Model.DistrictName</td>
            </tr>
            <tr>
                <td>Ngày tạo</td>
                <td>@Model.DateCreated</td>
            </tr>
            @if (Model.Active)
            {
                <tr>
                    <td>Kích hoạt</td>
                    <td><input type="checkbox" checked="@Model.Active" value="" /> </td>
                </tr>
            }
            else
            {
                <tr>
                    <td>Kích hoạt</td>
                    <td><input type="checkbox" value="" /> </td>
                </tr>
            }
            <tr>
                <td>Tạo bởi</td>
                <td><strong>@Model.Username</strong></td>
            </tr>
            @if (!string.IsNullOrEmpty(Model.LongDesc))
            {
                <tr>
                    <td>Mô tả</td>
                    <td>
                        <div style="width: 630px; overflow:hidden;">                   
                                @Html.Raw(Model.LongDesc)
                        </div>
                    </td>
                </tr>
            }
        </table>
    </div>
</body>
</html>
